package com.example.system.domain.announcement.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
public class AnnouncementVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long announcementId;
    private String title;
    private String creatorName;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    
    /**
     * 公告状态：0-待发布 1-已发布 2-已下架
     */
    private Integer status;

}
